package com.example.perplonews.a_b_utils

import com.blankj.utilcode.util.EncryptUtils
import java.util.*


class Md5Utils {
    /**
     * 针对服务器中每个接口中sign参数的加密方法
     */
    companion object{
        fun createSign(oldStr: String): String? {
            if (oldStr.isEmpty()) return ""
            val arrs = oldStr.toCharArray()
            Arrays.sort(arrs)
            val str = String(arrs)
            return EncryptUtils.encryptMD5ToString(str + "tamboo").toLowerCase()
        }
    }

}